<#assign pageName="消息详情">
<@override name="head-styles">
</@override>
<@override name="page-content">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>${pageName}
            <a href="../manage" class="layui-btn layui-btn-normal layui-btn-xs" style="vertical-align: text-bottom;">
               <i class="layui-icon layui-icon-return"></i>返回
            </a>
        </legend>
    </fieldset>
    <form class="layui-form">
         <#if bsMessageMap?has_content>
             <input type="hidden" id="messageInfo" data-id="${bsMessageMap.log_id}"  value="${bsMessageMap.status}"/>
             <@ctrl.ArticleText title="${bsMessageMap.title}" content="${bsMessageMap.content}" time="${bsMessageMap.create_time}"/>
         <#else>
            <div class="align-center margin-10" style="color:red; font-weight:bold;">文章信息获取错误！</span>
         </#if>
    </form>
</@override>
<@override name="page-scripts">
    <script>
        $(function(){
            layui.use(['form','jquery'], function(){
                var form = layui.form;
                $=layui.jquery;
                var status = $("#messageInfo").val();
                var logId = $("#messageInfo").attr("data-id");
                if(status==0){
                    $.ajax({
                        type : 'POST',
                        url : '${contextPath}/message/receive/read',
                        data : {'logId':logId},
                        success : function(data){
                        }
                    });
                }
            })
        })
    </script>
</@override>
<@extends name="/layout/basepage.html"/> 